
#ifndef RTC_H_
#define RTC_H_

#include "stm32lib/stm32f10x_rtc.h"

#include "rtc_timestamp.h"

#define RTC_CLOCK 195
//312

class Rtc
{
  public:
    static void init(void);

    // Clear and start after power down
    static void resetAfterPowerdown(void);

    static RtcTimestamp now(void);
    static void setTime(const RtcTimestamp &timestamp);
 
  private:
};

#endif /* RTC_H_ */
